package com.xw.childhealth.base.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Description:
 * @Author: y
 * @CreateDate: 2019-11-06 09:11
 * @Version: 1.0
 */
@Configuration
public class WebUrlConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("pages/admin/login");
        registry.addViewController("/article-list").setViewName("pages/admin/article-list");
        registry.addViewController("/article-add").setViewName("pages/admin/article-add");
        registry.addViewController("/welcome").setViewName("pages/admin/welcome");
        registry.addViewController("/data-dictionary").setViewName("pages/admin/data-dictionary");
        registry.addViewController("/health-guidance").setViewName("pages/admin/health-guidance");
        registry.addViewController("/jieduan-knowledge").setViewName("pages/admin/jieduan-knowledge");
        registry.addViewController("/children-standard").setViewName("pages/admin/children-standard");
        registry.addViewController("/children-dxzsk").setViewName("pages/admin/children-dxzsk");
        registry.addViewController("/children-hyjcmb").setViewName("pages/admin/children-hyjcmb");
        registry.addViewController("/xz-code-maintain").setViewName("pages/admin/xz-code-maintain");
        registry.addViewController("/xz-code-query").setViewName("pages/admin/xz-code-query");
        registry.addViewController("/dw-code").setViewName("pages/admin/dw-code");
        registry.addViewController("/xq-hospital").setViewName("pages/admin/xq-hospital");
        registry.addViewController("/icd10code").setViewName("pages/admin/icd10code");
        registry.addViewController("/assaycheckitem").setViewName("pages/admin/assaycheckitem");
        registry.addViewController("/test").setViewName("pages/admin/test");
        registry.addViewController("/basic-data").setViewName("pages/admin/basic-data");
        registry.addViewController("/neonatal-visit").setViewName("pages/admin/neonatal-visit");
        registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
    }
}

